<table class="formTable">
        <tbody>
                <tr>
                        <th class="must">コンテンツ名</th>
                        <td>
                                {assign var=key value='content_name'}
                                <input type="text" name="forms[{$key}]" class="text" value="{$forms.$key}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <!--
                <tr>
                        <th class="must">カテゴリ設定</th>
                        <td>
                            {html_options name=use_category options=$category selected=$forms.use_category}{$err.use_category}
                        </td>
                </tr>
                -->
                {if isset($category_list)}
                <tr>
                        <th class="must">カテゴリ設定</th>
                        <td>
                                {assign var=key value='category_id'}
                                {html_options name='forms[category_id]' options=$category_list selected=$forms[$key]}
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                {/if}
                
                <tr>
                        <th class="must">企業設定</th>
                        <td>
                            {assign var=key value='select_category'}
                            {category_selecter selected_category=$forms.$key parent=14}{*parent->企業のid*}
                            {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                            <!--
                            <input type="hidden" name="forms[company-category_id]" value="2"/>仮
                            -->
                            
                            <!--
                            
                            INSERT INTO R_COMPANY(func, category) VALUES( %u, %u );
                            
                            
                            SELECT DISTINCT MC.id, MC.category_name FROM R_COMPANY RC, M_CATEGORY MC WHERE MC.site = %u AND RC.func = %u AND RC.category = MC.id", $_SESSION['DASH_BOARD']['SITE_ID'], MANAGE_ITEM
                            
                                <input type="button" id="id_category" class="btn_category" value="カテゴリ選択" />
                                <input type="hidden" name="category" />
                                <ul id="selected_category">
                                {foreach from=$forms.category key=k item=v}
                                        <li id="{$k}"><a href="javascript:;" class="delete_category">削除</a> {$v}</li>
                                {/foreach}
                                </ul>
                                {$err.category}
                            -->
                        </td>
                </tr>
                <tr>
                        <th>トップページ表示件数</th>
                        <td>
                                <ul>
                                        <li><input type="text" name="forms[top_nums1]" class="smartspinner" value="{$forms.top_nums1}" />件 {$err.top_nums1}</li>
                                        <li><input type="text" name="forms[top_nums2]" class="smartspinner" value="{$forms.top_nums2}" />件 {$err.top_nums2}</li>
                                        <li><input type="text" name="forms[top_nums3]" class="smartspinner" value="{$forms.top_nums3}" />件 {$err.top_nums3}</li>
                                </ul>
                        </td>
                </tr>
                <tr>
                        <th>トップページ表示項目</th>
                        <td>
                            {html_checkboxes name='forms[top_items]' options=$item->getDisplayItemsMap() checked=$forms.top_items separator='　'}
                        </td>
                </tr>
                <tr>
                        <th>一覧ページ表示件数</th>
                        <td>
                                <input type="text" name="forms[list_nums]" class="smartspinner" value="{$forms.list_nums}" />件単位 {$err.list_nums}
                        </td>
                </tr>
                <tr>
                        <th>一覧ページ表示項目</th>
                        <td>
                            {html_checkboxes name='forms[list_items]' options=$item->getDisplayItemsMap() checked=$forms.list_items separator='　'}
                        </td>
                </tr>
                <tr>
                        <th>表示順</th>
                        <td>
                            {html_radios name='forms[sort_item]' options=$item->getSortMap() checked=$forms.sort_item separator='　'}
                        </td>
                </tr>
        </tbody>
</table>